﻿/// <summary>
/// https://leetcode-cn.com/problems/search-insert-position/
/// </summary>
public class Solution
{
    public int SearchInsert(int[] nums, int target)
    {
        var list = new List<int>(nums)
        {
            target
        };
        list.Sort();
        return list.IndexOf(target);
    }
}